// var mapjs = require("./map.js");




var define= {};
define.ShowDelay = 33;
define.MouseSpeed = 4;
define.CatSpeed = 5;

define.Wall = 1;
define.MU = 2;
define.MD = 3;
define.ML = 4;
define.MR = 5;
define.CU = 6;
define.CD = 7;
define.CL = 8;
define.CR = 9;

define.InputPoint = 10;


define.GAS = 11;
define.TRAP = 12;
define.BOMB = 13;
define.BombFlash = 14;
define.Block = 15;
define.Light = 16;
///////////////////////////////

define.Up = 0;
define.Down = 1;
define.Left = 2;
define.Right = 3

define.Dir = [[-1, 0], [1, 0], [0, -1], [0, 1]];

//for light
define.LightTime = 3000;

//for=cat;
define.Cat_Detect_Width = 3;

//for=gas;
define.WapGASTime = 7000;
define.MaxGASWidth = define.WapGASTime / 1000 - 3;
define.PosionTime = define.MouseSpeed * 2.5;

//for=bomb;
define.WapBombTime = 5000;
define.BombFlashTime = 1000;
define.BombWidth = 5;

//for=trap;
define.WapTrapTime = 5000;

//for=block;
define.WapBlockTime = 8000

//for wall
define.OFFSET = 16;
define.UR = 0 + define.OFFSET;
define.UL = 1 + define.OFFSET;
define.DR = 2 + define.OFFSET;
define.DL = 3 + define.OFFSET;
define.RI = 4 + define.OFFSET;
define.LE = 5 + define.OFFSET;
define.DO = 6 + define.OFFSET;
define.UP = 7 + define.OFFSET;
define.CROSS = 8 + define.OFFSET;
define.COL = 9 + define.OFFSET;
define.ROW = 10 + define.OFFSET;
define.BL = 11 + define.OFFSET;


function isWall(n) {
  if (n == define.Wall)
    return true;
  else
    return false;
}

module.exports = {
  define:define,
  isWall: isWall
}